<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="jQuery/jquery-ui.min.css"/>
</head>
<body>
    <div id="div">
        <p>这是一个dialog</p>
    </div>
    <a href="#" id="btn">按钮</a>
</body>
<script src="jQuery/jquery.js"></script>
<script src="jQuery/jquery-ui.min.js"></script>
<script>
    $(document).ready(function (){
        $("#btn").button().on("click",function (){
            $("#div").dialog();
        })
    });
</script>
</html>